import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import moment from 'moment';
import 'moment/locale/zh-cn';
import { ConfigProvider } from 'antd';
import locale from 'antd/es/date-picker/locale/zh_CN';
import {
  HashRouter as Router,
  Route,
} from 'react-router-dom';
moment.locale('zh-cn');
ReactDOM.render(
  <React.StrictMode>
    <ConfigProvider locale={locale}>
    <Router>
        <div style={{ width:'100%',height:'100%',margin:'auto'}} >
          <Route exact path="/" component={App}/>
        </div>
      </Router>
    </ConfigProvider>
  </React.StrictMode>,
  document.getElementById('root')
);
